import type { Language } from '@/store/modules/app/helper';

type LanguageOpt = {
  label: string; key: Language; value: Language 
}

export const LANGUAGES: Array<LanguageOpt> = [
  { label: '简体中文', key: 'zh-cn', value: 'zh-cn' },
  { label: '繁體中文', key: 'zh-tw', value: 'zh-tw' },
  { label: 'English', key: 'en-us', value: 'en-us' },
  { label: 'हिंदी', key: 'hi-in', value: 'hi-in' },
  { label: 'italiano', key: 'it-it', value: 'it-it' },
  { label: 'Українська', key: 'uk-ua', value: 'uk-ua' },
  { label: '한국어', key: 'ko-kr', value: 'ko-kr' },
  { label: 'Português', key: 'pt-pt', value: 'pt-pt' },
  // { label: 'Filipino', key: 'fil-ph', value: 'fil-ph' },
  { label: 'ไทย', key: 'th-th', value: 'th-th' },
  { label: '日本語', key: 'ja-jp', value: 'ja-jp' },
  // { label: 'Bahasa Indonesia', key: 'id-id', value: 'id-id' },
  { label: 'Français', key: 'fr-fr', value: 'fr-fr' },
  { label: 'العربي', key: 'ar-sa', value: 'ar-sa' },
  { label: 'TiếngViệt', key: 'vi-vn', value: 'vi-vn' },
  { label: 'Русский', key: 'ru-ru', value: 'ru-ru' },
  { label: 'Türkçe', key: 'tr-tr', value: 'tr-tr' },
  { label: 'Español', key: 'es-es', value: 'es-es' },
].sort((a, b) => a.key > b.key ? 1 : -1) as Array<LanguageOpt>;
